<?php
declare(strict_types=1);

use Zms\Sms\Drive\{Rydsms};

//载入对应的短信配置
use Zms\Sms\Sms;

require_once "../vendor/autoload.php";


$configure = [
    'open' => 1,
    'appid' => '1cJj8tsfsfG0KOS211H9',
    'appkey' => 'CwJVsfsdfsfc4vtrx3WYk6BF1Hi3',
    'sign' => '成都市测试短信',
];

$template = [
    ['KEY' => 'SMST-DEFAULT', 'TEMPLATE_ID' => 'SMS_472450418', 'DESCRIPTION' => '验证码', 'CONTENT' => '【{signature}】您的验证码为：{code}，请不要露给他人！']
];

/**
 * @var  Rydsms $sms
 */
$sms = Sms::get(Rydsms::class, $configure['appid'], $configure['appkey'], $configure['sign'], $template);


//$result = $sms->send('19938255552', 'SMST-DEFAULT', ['code' => 3302]);
//$result = $sms->sendBody('15444400750', "【{signature}】虎虎的验证码{code}，请不要告诉眈眈!", ['code' => '0000']);
